Technical Q&As
AMT_PE 11 - Panning Media under a Window (1-Aug-95)
Q I have a PICT for which I want to show different regions at different times (as
for a flipbook animation). How do I do this in AML?
A The following example moves an object's media right and down by deltaX, deltaY
pixels without changing the actual location or size of the "window" to the
media.object foo is MEDIAHANDLER
has
PanMedia(deltaX, deltaY)
do
self.target.X := self.target.X + deltaX;
self.target.Y := self.target.Y + deltaY;
self.InvalidateAll();
self.target.UpdateFocus();
end;
end;
Technical Q&As
Previous Question | Contents | Next Question